package com.medical.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medical.system.mapper.ConsultationMapper;
import com.medical.system.model.Consultation;
import com.medical.system.service.ConsultationService;
import com.medical.system.vo.ConsultationVo;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public class ConsultationServiceImpl extends ServiceImpl<ConsultationMapper, Consultation> implements ConsultationService {
    @Override
    public Consultation findClientMenuByRoleId(Long clientId) {
        return this.baseMapper.findClientMenuByRoleId(clientId);
    }

    @Override
    public IPage<Consultation> selectPage(IPage<Consultation> iPage, ConsultationVo consultationVo) {
        return this.baseMapper.selectPage(iPage, consultationVo);
    }
}
